//
//  ViewModel.h
//  HTP
//
//  Created by yunhe on 15/9/22.
//  Copyright © 2015年 lab205. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface ViewModel : NSObject
@property (strong, nonatomic) ReturnValueBlock returnBlock;
@property (strong, nonatomic) ErrorCodeBlock errorBlock;
@property (strong, nonatomic) FailureBlock failureBlock;

// 传入交互的Block块
-(void) setBlockWithReturnBlock: (ReturnValueBlock) returnBlock
                 WithErrorBlock: (ErrorCodeBlock) errorBlock
               WithFailureBlock: (FailureBlock) failureBlock;

-(void)fetchResult:(NSDictionary *)message;

-(void)fetchError;
@end
